ChannelListAdapter

open class ChannelListAdapter : BaseAdapter<T, VH>

ChannelListAdapter provides a binding from a GroupChannel type data set to views that are displayed within a RecyclerView.

Constructors

Link copied to clipboard
open fun ChannelListAdapter()
Constructor
Link copied to clipboard
open fun ChannelListAdapter(@Nullable listener: OnItemClickListener<GroupChannel>)
Constructor
Link copied to clipboard
open fun ChannelListAdapter(@Nullable listener: OnItemClickListener<GroupChannel>, @NonNull params: ChannelListUIParams)

Functions

Link copied to clipboard
open fun getItem(position: Int): GroupChannel
Returns the GroupChannel in the data set held by the adapter.
Link copied to clipboard
open fun getItemCount(): Int
Returns the total number of items in the data set held by the adapter.
Link copied to clipboard
open fun getItems(): List<GroupChannel>
Returns the < in the data set held by the adapter.
Link copied to clipboard
open fun getOnItemClickListener(): OnItemClickListener<GroupChannel>
Returns a callback to be invoked when the itemView is clicked.
Link copied to clipboard
open fun getOnItemLongClickListener(): OnItemLongClickListener<GroupChannel>
Returns a callback to be invoked when the itemView is clicked and held.
Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: BaseViewHolder<GroupChannel>, position: Int)
Called by RecyclerView to display the data at the specified position.
Link copied to clipboard
open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): BaseViewHolder<GroupChannel>
Called when RecyclerView needs a new < of the given type to represent an item.
Link copied to clipboard
open fun setItems(@NonNull channelList: List<GroupChannel>)
Sets the < to be displayed.
Link copied to clipboard
open fun setMessageDisplayDataProvider(@Nullable messageDisplayDataProvider: MessageDisplayDataProvider)
Sets MessageDisplayDataProvider, which is used to generate data before they are sent or rendered.
Link copied to clipboard
open fun setOnItemClickListener(@Nullable listener: OnItemClickListener<GroupChannel>)
Register a callback to be invoked when the itemView is clicked.
Link copied to clipboard
open fun setOnItemLongClickListener(@Nullable listener: OnItemLongClickListener<GroupChannel>)
Register a callback to be invoked when the itemView is clicked and held.